package com.xuhao.android.libsocket.sdk;

import com.xuhao.android.libsocket.sdk.bean.ISendable;

import org.jim.client.DefaultCoreHandler;
import org.jim.common.base.ImPacket;

/**
 * Author:  winds
 * Data:    2018/7/16
 * Version: 1.0
 * Desc:
 */


public class ISendableIml implements ISendable {
    ImPacket packet;

    public ISendableIml(ImPacket packet) {
        this.packet = packet;
    }

    @Override
    public byte[] parse() {
        return DefaultCoreHandler.encode(packet);
    }
}
